<!DOCTYPE html>
<html lang="zh-CN">
	<head>
	  <meta charset="utf-8">
	  <meta name="viewport" content="width=device-width, initial-scale=1.0">
	  <meta name="description" content="Geeker">
	  <meta name="author" content="liutao">
	  <meta name="keyword" content="Geeker">
	  <title>Makeup私塾后台管理页面</title>
	  <!-- Favicons -->
	  <link id="beyond-link" href="__PUBLIC__/css/beyond.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="__PUBLIC__/css/lady.css">
	  <link href="__IMG__/images/favicon.png" rel="icon">
	  <link href="__IMG__/images/apple-touch-icon.png" rel="apple-touch-icon">
	  <!-- Bootstrap core CSS -->
	  <link href="__PUBLIC__/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
	  <!--external css-->
	  <link href="__PUBLIC__/lib/font-awesome/css/font-awesome.css" rel="stylesheet" />
	  <!-- Custom styles for this template -->
	  <link href="__PUBLIC__/css/style.css" rel="stylesheet">
	  <link href="__PUBLIC__/css/style-responsive.css" rel="stylesheet">
	  <link href="__PUBLIC__/lib/bootstrap-fileupload/bootstrap-fileupload.css" rel="stylesheet" />
	  <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/ueditor/lang/zh-cn/zh-cn.js"></script>
	</head>

	<body>
	  <section id="container">
		<!--header start-->
		{include file="common/header"}
		<!--header end-->
		
		<!--sidebar start-->
		{include file="common/sidebar"}
		<!--sidebar end -->
		
		<!--main content start-->
		<section id="main-content">
		  <section class="wrapper site-min-height">
		    <p class="mt nav-size">
			  <i class="fa fa-home"></i>&nbsp;
			  <a href="{:url('index/index')}">系统</a>  /  
			  <a href="{:url('banner/index')}">产品列表</a>  /  修改产品			  
		    </p>
			<div class="row">
				<div class="col-lg-12 col-sm-12 col-xs-12">
					<div class="widget">
						<div class="widget-header bordered-bottom bordered-blue">
							<span class="widget-caption">修改产品</span>
						</div>
						<div class="widget-body">
							<div id="horizontal-form">
                                <form class="form-horizontal" role="form" action="{:url('Article/edit')}" enctype="multipart/form-data" method="post">
                                    <input type="hidden" name="id" value="{$articles.id}">
									<div class="form-group">
										<label for="username" class="col-sm-2 control-label no-padding-right">产品标题</label>
										<div class="col-sm-6">
											<input class="form-control" id="title" placeholder="" name="title"  type="text" required="" value="{$articles.title}">
										</div>
										<p class="help-block col-sm-4 red">* 必填</p>
									</div>  
									<div class="form-group">
										<label for="group_id" class="col-sm-2 control-label no-padding-right">关键字</label>
										<div class="col-sm-6">
											<input class="form-control" id="keywords" placeholder="" name="keywords" value="{$articles.keywords}"  type="text">
										</div>
									</div>  
									<div class="form-group">
										<label for="group_id" class="col-sm-2 control-label no-padding-right">产品描述</label>
										<div class="col-sm-6">
											<textarea name="des" class="form-control">{$articles.des}</textarea>
										</div>
									</div>
									<div class="form-group">
											<label for="group_id" class="col-sm-2 control-label no-padding-right">产品介绍</label>
											<div class="col-sm-6">
												<textarea name="duction" class="form-control">{$articles.duction}</textarea>
											</div>
										</div>
									<div class="form-group">
										<label for="group_id" class="col-sm-2 control-label no-padding-right">缩略图</label>
										<div class="col-sm-6">
                                                <input id="pic" placeholder="" name="pic" style="display:inline;" type="file">
                                                {if condition="$articles['pic'] neq ''"}
                                                    <img src="__IMG__{$articles.pic}" height="50">
                                                {else /}
                                                    <span>暂无缩略图</span>
                                                {/if}
										</div>
									</div>
									<div class="form-group">
										<label for="group_id" class="col-sm-2 control-label no-padding-right">所属栏目</label>
										<div class="col-sm-6">
											<select name="cateid">
												<option value="">请选择栏目</option>
												{volist name="cateres" id="vo"}
                                    <option {if condition="$vo['id'] eq $articles['cateid']"}selected="selected"{/if} value="{$vo.id}">{$vo.catename}</option>
                                    {/volist}
											</select>
										</div>
										<p class="help-block col-sm-4 red">* 必选</p>
									</div>
									<div class="form-group">
										<label for="group_id" class="col-sm-2 control-label no-padding-right">是否推荐</label>
										<div class="col-sm-6">
												<label>
												<input class="checkbox-slider colored-darkorange" name="state" type="checkbox">
												<span class="text"></span>
												</label>
										</div>
									</div>
									<div class="form-group">
										<label for="group_id" class="col-sm-2 control-label no-padding-right">产品内容</label>
										<div class="col-sm-6">
												<label>
												<textarea name="content"  id="content">{$articles.content}</textarea>
												</label>
										</div>
									</div>
									<div class="form-group">
										<div class="col-sm-offset-2 col-sm-10">
											<button type="submit" class="btn btn-default">保存产品</button>
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!-- page end-->
		  </section>
		  <!-- /wrapper -->
		</section>
		<!-- /MAIN CONTENT -->
		<!--main content end-->
		
		
		<!--footer start-->
		{include file="common/footer"}
		<!--footer end-->
	  </section>
	  <!-- js placed at the end of the document so the pages load faster -->
	  <script src="__PUBLIC__/lib/jquery/jquery.min.js"></script>
	  <script src="__PUBLIC__/lib/bootstrap/js/bootstrap.min.js"></script>
	  <script class="include" type="text/javascript" src="__PUBLIC__/lib/jquery.dcjqaccordion.2.7.js"></script>
	  <script src="__PUBLIC__/lib/jquery.scrollTo.min.js"></script>
	  <script type="text/javascript" src="__PUBLIC__/lib/bootstrap-fileupload/bootstrap-fileupload.js"></script>
	  <script src="__PUBLIC__/lib/jquery.nicescroll.js" type="text/javascript"></script>
	  <!--common script for all pages-->
	  <script src="__PUBLIC__/lib/common-scripts.js"></script>
	  <script type="text/javascript">
		//实例化编辑器
		//建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
		UE.getEditor('content',{initialFrameWidth:1000,initialFrameHeight:400,});
		</script>
	  <!--script for this page-->
	</body>

</html>
